package core.communication.message;

public class NodeStateMessage extends Message {
	private static final long serialVersionUID = -7272946258288340146L;

	private String locatorURI;
	private CNodeState state;

	public NodeStateMessage(String locatorUri, CNodeState state) {
		super();
		setPriority(MessagePriority.NORMAL);
		setMessageType(MessageType.NodeState);
		setDirection(Direction.UP);
		this.locatorURI = locatorUri;
		this.state = state;
	}

	public String getLocatorURI() {
		return locatorURI;
	}

	public CNodeState getState() {
		return state;
	}
}
